﻿using System;
using Informant.Clients.SL4;

namespace Informant.Clients.ViewModels.SL4
{
	public class SmsMessagingViewModel : SmsMessagingBaseViewModel
	{
		/// <summary>
		/// Sends an sms.
		/// </summary>
		/// <value>The send SMS.</value>
		public DelegateCommand<Object> SendSms { get; set; }
		/// <summary>
		/// Adds or removes items from the collection of selected items they belong to.
		/// </summary>
		/// <value>The change item is selected.</value>
		public DelegateCommand<Object> ChangeItemIsSelected { get; set; }

		/// <summary>
		/// Initializes a new instance of the <see cref="SmsMessagingViewModel"/> class.
		/// </summary>
		public SmsMessagingViewModel()
		{
			SendSms = new DelegateCommand<Object>(SendSmsHandler, CanSendSms, new String[] { "Recipients", "MessageBody" });
			ChangeItemIsSelected = new DelegateCommand<Object>(ChangeItemIsSelectedHandler);
		}
	}
}
